Get Coordinates of Joystick
Function:
magicbox.get_joystick_pos(port)Description: get coordinates of the joystick
Required parameter:
- port: controller port, data type: int, range: 1~6
- Return: dictionary of joystick coordinates
Example
res = magicbox.get_joystick_pos(port=2)Detect the joystick module connected to Port 2 of controller, and get coordinates of joystick.